//
//  QDLifeTableViewController.swift
//  QDMetroClient
//
//  Created by YueWen on 2019/3/8.
//  Copyright © 2019 YueWen. All rights reserved.
//

import UIKit

extension QDLifeTableViewController {
    
    /// 请求生活圈模块信息
    @objc func requestLifeModule(complete:@escaping ([String: Any])->()){
        
        self.view.showWatingHUD()
        
        QDNetworkingManager.request(url: lifeUrl, paramteres: ["moduleId":"3"], success: { (msg, data) in
            
            self.endHeaderRefreshing()
            self.view.dismissHUD()
            complete(data)
            
        }) { (msg, errorType) in
            
            self.endHeaderRefreshing()
            self.view.showTextHUD(text: msg)
        }
    }
    
    
    /// 跳转到惠周边
    @objc func pushToLifeWebController(){
        
        self.checkLogin {
            self.ritl_topNavigationPush(QDLifeWebViewController(), animated: true)
        }
    }
}
